REM Generate client protobuf files.
REM Generate cs files to Assets\Scripts\ProtoBuf.

REM Change DIR if necessary.
set COMMON_DIR=Common
set CLIENT_DIR=TanksOnline

set PROTOGEN=%CLIENT_DIR%\Tools\ProtoGen\protogen.exe
set OUT_DIR=%CLIENT_DIR%\Assets\Scripts\ProtoBuf

cd /d ..\%COMMON_DIR%\proto
for %%f in (*.proto)       do ..\..\%PROTOGEN% -i:%%f -o:..\..\%OUT_DIR%\%%f.cs
for %%f in (tanks\*.proto) do ..\..\%PROTOGEN% -i:%%f -o:..\..\%OUT_DIR%\%%f.cs
cd ..\..\%CLIENT_DIR%

pause



